import request from '@/utils/request'

// 提交注册
export const submitFormAPI = (ruleForm) => {
  return request({
    method: 'post',
    url: '/api/reg',
    data: ruleForm
  })
}

// 登录页面
export const loginAPI = (data) => {
  return request({
    method: 'post',
    url: '/api/login',
    data
  })
}
